﻿#region Header

/***************************************************************************
Author : Krishan Kaliraman (www.sharedwith.me)  Date: 1 Aug 2012
***************************************************************************/

#endregion Header
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Text;
using System.Configuration;
using MS.Internal.Xml.XPath;
using Microsoft.TeamFoundation.WorkItemTracking.Client;

namespace Common
{
    public class StaticItems
    {
        public static string CurrentSprintIteration=string.Empty;
        public static string TfsUrl = string.Empty;
        public static string RecepientTo = string.Empty;
        public static string From = string.Empty;
        public static string NodeName = string.Empty;
        public static string TFSProjectName = string.Empty;
        public static NameValueCollection allTeamMembers;
        public static List<TeamMember> AllTeamMembersCollection = new List<TeamMember>();
        public static NameValueCollection AllTeams ;
        public static NameValueCollection TeamDocuments = new NameValueCollection();
        public static List<Activity> TotalWorkItemsUpdated = new List<Activity>();
        public static List<Activity> TotalWorkItemsInPipeLineForCurrentSprint = new List<Activity>();
        public static List<WorkItem> TotalPBIWorkItemsForTeam = new List<WorkItem>();
        public static List<WorkItem> CurrentSprintCommittedWorkItemsForTeamShiva = new List<WorkItem>();
        public static List<WorkItem> CurrentSprintDoneWorkItemsForTeamShiva = new List<WorkItem>();    
        static StaticItems()
        {
            CurrentSprintIteration = ConfigurationManager.AppSettings["sprintIteration"];
            TfsUrl = ConfigurationManager.AppSettings["tfsUrl"];
            NodeName = ConfigurationManager.AppSettings["NodeName"];
            RecepientTo = ConfigurationManager.AppSettings["to"];
            From = ConfigurationManager.AppSettings["from"];
            TFSProjectName = ConfigurationManager.AppSettings["TFSProjectName"];
            allTeamMembers = (NameValueCollection)ConfigurationManager.GetSection("TeamMembers");
            AllTeams = (NameValueCollection)ConfigurationManager.GetSection("TeamEmailAddresses");
            TeamDocuments = (NameValueCollection)ConfigurationManager.GetSection("TeamDocuments");
        }
    }
}
